<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page session="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>GRI-SEO Login</title>
<link href="css/main.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<%
		String email = request.getParameter("email");
		if(null==email){
			email = "";
		}
		String message = (String)session.getAttribute("message");
		if(null == message){
			message = "";
		}
	%>
<div id="cenetered">
	<jsp:include page="facelets/image.jsp"></jsp:include>
	
	<jsp:include page="facelets/topLinkBar.jsp"/>
	
	<div style="text-align: center; font-weight:bold;  font-family: verdana; font-size: 12px;">
		LOGIN INTO GRI-SEO AND CREATE PROJECTS
	</div>
	<div style="font-family:verdana; color:red;font-size: 12px; margin-top: 10px;">
		<%= message %>
	</div>
	<form id="loginForm" method="post" action="authenticate.do">
		<center>
			<table>
				<tr>
					<td>
						Email:
					</td>
					<td>
						<input type="text" name="email" value="<%= email %>"/>
					</td>
				</tr>
				<tr>
					<td>
						Password:
					</td>
					<td>
						<input type="password" name="pwd"/>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: right;">
						<input type="submit" name="login" value="LOGIN"/>
					</td>
				</tr>
			</table>
		</center>
	</form>
	<jsp:include page="facelets/footer.jsp"></jsp:include>
	</div>
</body>
</html>